<?php get_header(); ?>
		<div id="primary" class="hfeed">
			
			<div id="loopedSlider">
				<?php if ( is_home() || is_front_page() ): ?>
					<?php $loop = new WP_Query(array('post_type' => 'primary2', 'posts_per_page' => 15, 'order' => 'asc')); ?>
					<?php if ($loop->have_posts()): ?>
						<div class="container">
							<div class="slides">
								<?php $posts_counter = 0; ?>
								<?php while ($loop->have_posts()) :	$loop->the_post(); $posts_counter++; ?>
									<div>
										<?php the_content(); ?>
									</div>
								<?php endwhile; ?>
							</div>
							<?php if ($posts_counter > 0): ?>
								<div class="pagination-container">
									<ul class="pagination">
										<?php for ($i = 1; $i <= $posts_counter; $i++): ?>
											<li><a href="#"></a></li>
										 <?php endfor; ?>
									</ul>
								</div>
							<?php endif; ?>
						
						</div>
					<?php endif; ?>
				<?php endif; ?>
			</div>
			
			<?php get_template_part( 'loop', 'index' );?>
			
		</div><!--END #primary .hfeed-->
		
<?php get_footer(); ?>
